package Units;
import main.*;
/**
 * the set up for the foot soldier unit type
 * @author Bart
 *
 */
public class FootSoldier extends Unit {
	static int[] c = {5, 2, 10, 0, 0, 0, 0};
	/**
	 * basic constructor
	 * @param xposition
	 * @param yposition
	 * @param o Player owner
	 */
	public FootSoldier(int xposition, int yposition, Player o){
		super(xposition, yposition, 10, 10, 4, o,3);
		//xpos, ypos, chealth, mhealth, move, owner, damage
		name="Foot";
		setCost(c);
		if(o.getRes().getTree().checkIfComplete("MetalW"))
			this.setDamage(this.getDamage()+2);
	}
}
